﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace BusinessObjects
{
    [DataContract]
    public class EventFeedback : BaseBusinessObject
    {
        private Event gameEvent;
        private int senderId;
        private string feedback;
        private bool isJoining;

        [DataMember]
        public Event GameEvent
        {
            get
            {
                return this.gameEvent;
            }
            set
            {
                if ( this.gameEvent == value )
                    return;

                this.gameEvent = value;
                this.NotifyPropertyChanged( "GameEvent" );
            }
        }

        [DataMember]
        public int SenderId
        {
            get
            {
                return this.senderId;
            }
            set
            {
                if ( this.senderId == value )
                    return;

                this.senderId = value;
                this.NotifyPropertyChanged( "SenderId" );
            }
        }

        [DataMember]
        public string Feedback
        {
            get
            {
                return this.feedback;
            }
            set
            {
                if ( this.feedback == value )
                    return;

                this.feedback = value;
                this.NotifyPropertyChanged( "Feedback" );
            }
        }

        [DataMember]
        private bool IsJoining
        {
            get
            {
                return this.isJoining;
            }
            set
            {
                if ( this.isJoining == value )
                    return;

                this.isJoining = value;
                this.NotifyPropertyChanged( "IsJoining" );
            }
        }
    }
}
